package com.woniuxy.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.PageEntity;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.ResponseEntity;

import java.util.List;

public interface RbacManagerService {
    /**
     * <P>Author ideaAdmin
     * <P>TODO: 查找所有用户并返回
     * <P>Date 9:10 2022/2/25
     * <P>* @param pageSize
     * <P>* @return com.woniuxy.entity.ResponseEntity<com.github.pagehelper.PageInfo>
     **/
    ResponseEntity<PageInfo> findAll(PageEntity pageSize);

    /**
     * <P>Author ideaAdmin
     * <P>TODO: 根据用户id 删除用户
     * <P>Date 9:10 2022/2/25
     * <P>* @param id
     * <P>* @return com.woniuxy.entity.ResponseEntity
     **/
    ResponseEntity delOne(Integer id);

    /**
     * <P>Author ideaAdmin
     * <P>TODO:添加账户
     * <P>Date 9:10 2022/2/25
     * <P>* @param rbacManager
     * <P>* @return com.woniuxy.entity.ResponseEntity
     **/
    ResponseEntity addOne(RbacManager rbacManager);

    /**
     * <P>Author ideaAdmin
     * <P>TODO: 更新账户信息
     * <P>Date 9:09 2022/2/25
     * <P>* @param rbacManager
     * <P>* @return com.woniuxy.entity.ResponseEntity
     **/
    ResponseEntity updateOne(RbacManager rbacManager);
}
